package com.itita.ww2.handler.requesthandler.item;

import com.smartfoxserver.v2.annotations.MultiHandler;
import com.itita.ww2.core.AbstractClientRequestHandler;

/**
 * 物品
 * @author NorthLan
 */
@MultiHandler
public class ItemHandler extends AbstractClientRequestHandler {
	public static final String COMMAND_PREFIX = "item"; // 前缀

	@Override
	protected void init() {
		addClientRequestItem("c_item", CompositeItem.class); // 合成物品
		addClientRequestItem("c_equip", CompositeEquipment.class); // 合成装备,并自动装备给兵
		addClientRequestItem("up_equip", UpgradeEquipment.class); // 装备升级
		addClientRequestItem("use_item", UseItem.class); // 使用物品
	}

	@Override
	protected void setCommandPrefix() {
		super.cmd_prefix = COMMAND_PREFIX;
	}

}
